<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/resources/css/jquery.mobile-1.4.2.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/resources/css/app.css?v=0.2.11">
<script
	src="${pageContext.request.contextPath}/resources/js/jquery-1.11.0.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/jquery.mobile-1.4.2.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/jquery.validate.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/jquery.validate.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/additional-methods.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/validations.js?v=0.2.11"></script>
<title>Consulta de visitas agendadas</title>
</head>
<body>

	<div data-role="page" data-ajax="false" data-theme="a">
		<div data-role="header">
			<h1>Visitas Agendadas</h1>
			<a data-iconpos="notext" data-icon="home"
				href="${pageContext.request.contextPath}"></a>
		</div>
		<div role="main" class="ui.content">
			<div class="centered-content">
				<h2>Visitas agendadas pendientes</h2>
				<table class="outputTable">
					<tr>
						<th>Cliente</th>
						<th>Fecha Programada</th>
						<th>Detalle</th>
					</tr>
					<c:forEach items="${listaVisitaAgendada}" var="visita">
						<tr>
							<td align="left">
							<p>
									<a
										href="${pageContext.request.contextPath}/consultar_cliente/${visita.cliente.id}"
										data-rel="dialog" data-transition="pop">${visita.cliente.nombre}</a>
								</p>
							
							
							</td>

							<td><fmt:formatDate value="${visita.fechaProgramada}"
									pattern="dd/MM/yyyy HH:mm" timeZone="GMT-4" /></td>
							<td><a
								href="${pageContext.request.contextPath}/consultar_visita/${visita.id}"
								class="ui-btn ui-mini" data-rel="dialog" data-transition="pop">Detalle</a>

							</td>
						</tr>
					</c:forEach>
				</table>


			</div>
		</div>
	</div>


</body>
</html>